import subprocess
import os
#调用子进程执行命令，抛弃它返回的结果
#subprocess.Popen('dir',shell=True)

'''
# 将子进程的数据通过管道转到主进程
exe = subprocess.Popen('dir',shell=True,stdout=subprocess.PIPE)
print(str(exe.stdout.read(),'gbk'))
'''

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
print(BASE_DIR)
print(__file__)